|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.highdeal.hci.OperationFailureException
com.highdeal.pnr.hci.CleanupException
public class CleanupException
Exception thrown during the processing of a cleanup operation request in the connected SAP CC system;
The exception is registered in the operation results.
The main reasons are:
invalidSubscriptionCode error occurs when the given code
is null or does not correspond to a subscription in the
database.
invalidResultType occurs when the result type is
unknown.
invalidToDate error occurs when the given date is
null.
incompatibleCurrencies occurs when aggregating the total
amounts of different currencies.
Note
Consult the field summary and the field details for the complete list of reasons and detailed information.
AsyncStatefulServiceClient,
StatefulServiceClient,
Serialized FormThe XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="cleanupFault">
<xs:complexType>
<xs:attribute name="reason" type="CleanupFaultType"/>
<xs:attribute name="message" type="xs:string"/>
</xs:complexType>
</xs:element><xs:simpleType name="CleanupFaultType">
<xs:restriction base="xs:string">
<xs:enumeration value="invalidSubscriberAccountCode"/>
<xs:enumeration value="invalidServiceProvider"/>
<xs:enumeration value="invalidSubscriptionOid"/>
<xs:enumeration value="invalidToDate"/>
<xs:enumeration value="invalidResultType"/>
<xs:enumeration value="incompatibleCurrencies"/>
<xs:enumeration value="cleanupProcessAlreadyRunning"/>
<xs:enumeration value="dispatcherCommunicationFailed"/>
<xs:enumeration value="unknown"/>
</xs:restriction>
</xs:simpleType>
| Field Summary | |
|---|---|
static int |
CLEANUP_PROCESS_ALREADY_RUNNING
6: Constant for cleanupProcesssAlreadyRunning error. |
static int |
DISPATCHER_COMMUNICATION_FAILED
7: Constant for dispatcherCommunicationFailed error |
static int |
INCOMPATIBLE_CURRENCIES
5: Constant for incompatibleCurrencies error |
static int |
INVALID_RESULT_TYPE
4: Constant for invalidResultType error |
static int |
INVALID_SERVICE_PROVIDER
1: Constant for invalidServiceProvider error |
static int |
INVALID_SUBSCRIBER_ACCOUNT_CODE
0: Constant for invalidSubscriberAccountCode error |
static int |
INVALID_SUBSCRIPTION_OID
2: Constant for invalidSubscriptionOid error |
static int |
INVALID_TO_DATE
3: Constant for invalidToDate error |
static java.lang.String |
OPERATION_NAME
The XML name: "cleanupFault" |
static int |
UNKNOWN
-1: Constant for unknown error |
| Constructor Summary | |
|---|---|
CleanupException()
Constructs an empty exception. |
|
CleanupException(int reason,
java.lang.String message)
Creates a new CleanupException with a reason and a message. |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the child representing
the marshallable object which must be added to the element. |
java.lang.String |
getMessage()
Gets the recorded detailed message for this CleanupException. |
int |
getReason()
Gets the recorded reason of this CleanupException for further investigations. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed. |
void |
setMessage(java.lang.String message)
SAP CC sets up the message for this CleanupException. |
void |
setReason(int reason)
SAP CC sets up the reason of this CleanupException. |
java.lang.String |
toString()
|
| Methods inherited from class com.highdeal.hci.OperationFailureException |
|---|
getOperandReference |
| Methods inherited from class java.lang.Throwable |
|---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String OPERATION_NAME
public static final int INVALID_SUBSCRIBER_ACCOUNT_CODE
invalidSubscriberAccountCode error
public static final int INVALID_SERVICE_PROVIDER
invalidServiceProvider error
public static final int INVALID_SUBSCRIPTION_OID
invalidSubscriptionOid error
public static final int INVALID_TO_DATE
invalidToDate error
public static final int INVALID_RESULT_TYPE
invalidResultType error
public static final int INCOMPATIBLE_CURRENCIES
incompatibleCurrencies error
public static final int CLEANUP_PROCESS_ALREADY_RUNNING
cleanupProcesssAlreadyRunning error. A
cleanup process is still running.
public static final int DISPATCHER_COMMUNICATION_FAILED
dispatcherCommunicationFailed error
public static final int UNKNOWN
unknown error
| Constructor Detail |
|---|
public CleanupException()
public CleanupException(int reason,
java.lang.String message)
CleanupException with a reason and a message.
reason - The reasonmessage - The additional messageINVALID_SUBSCRIBER_ACCOUNT_CODE,
INVALID_SERVICE_PROVIDER,
INVALID_SUBSCRIPTION_OID,
INVALID_TO_DATE,
INVALID_RESULT_TYPE,
INCOMPATIBLE_CURRENCIES,
CLEANUP_PROCESS_ALREADY_RUNNING,
UNKNOWN| Method Detail |
|---|
public void setReason(int reason)
CleanupException.
reason - The reason of this CleanupExceptionpublic int getReason()
CleanupException for further investigations.
CleanupExceptiongetMessage(),
INVALID_SUBSCRIBER_ACCOUNT_CODE,
INVALID_TO_DATE,
INVALID_RESULT_TYPE,
INCOMPATIBLE_CURRENCIES,
CLEANUP_PROCESS_ALREADY_RUNNING,
DISPATCHER_COMMUNICATION_FAILED,
UNKNOWNpublic void setMessage(java.lang.String message)
CleanupException.
message - The message for this CleanupExceptionpublic java.lang.String getMessage()
CleanupException.
getMessage in class java.lang.ThrowableCleanupExceptionpublic void setAttributes(XMLAttributes atts)
XMLMarshallable
atts - The XML attributes of the current elementpublic void addCharacterData(java.lang.String cData)
XMLMarshallable
cData - The character data to be added
public void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.
tagName - The name of tag for the childchild - The child to be addedpublic void marshal(XMLOutputter output)
XMLMarshallable
output - The XML output to marshal the object intopublic java.lang.String toString()
toString in class java.lang.Throwable
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||